package com.example.websocketserver.util;

/**
 * @Author : zzd
 * @Date : 2020/8/26 19:57
 * @Version: 1.0
 * @Description :消息返回定义
 */
public enum ResultEnum {

    UNKNOW_ERROR(-1, "未知错误"),
    SUCCESS(200, "成功"),
    FAIL(100,"失败"),
    SERVICE_CONNETION_ERROR(-101, "远程服务器连接失败"),
    AUTH_ERROR(-103,"未授权");


    private Integer code;
    private String msg;

    ResultEnum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
